package cn.ys.filesystem;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication // 扫描所在包及子包的bean，注入到ioc中
@EntityScan("cn.ys.domain.filesystem") // 扫描实体类
@ComponentScan(basePackages={"cn.ys.api"}) // 扫描接口
@ComponentScan(basePackages={"cn.ys"}) // 扫描通用类
@ComponentScan(basePackages={"cn.ys.filesystem"}) // 扫描本项目下的所有类
public class FileSystemApplication {
    public static void main(String[] args) {
        SpringApplication.run(FileSystemApplication.class,args);
    }

}